package com.ruoyi.contract.mapper;


import com.ruoyi.contract.domain.PaymentCollection;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 回款Mapper接口
 *
 * @author ruoyi
 * @date 2024-06-15
 */
@Mapper
public interface PaymentCollectionMapper
{
    /**
     * 查询回款
     *
     * @param paymentId 回款主键
     * @return 回款
     */
    public PaymentCollection selectPaymentCollectionByPaymentId(Long paymentId);

    /**
     * 查询回款列表
     *
     * @param paymentCollection 回款
     * @return 回款集合
     */
    public List<PaymentCollection> selectPaymentCollectionList(PaymentCollection paymentCollection);

    /**
     * 新增回款
     *
     * @param paymentCollection 回款
     * @return 结果
     */
    public int insertPaymentCollection(PaymentCollection paymentCollection);

    /**
     * 修改回款
     *
     * @param paymentCollection 回款
     * @return 结果
     */
    public int updatePaymentCollection(PaymentCollection paymentCollection);

    /**
     * 删除回款
     *
     * @param paymentId 回款主键
     * @return 结果
     */
    public int deletePaymentCollectionByPaymentId(Long paymentId);

    /**
     * 批量删除回款
     *
     * @param paymentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePaymentCollectionByPaymentIds(Long[] paymentIds);

    Long selectRemainingSum(Long pid);
}

